/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.cjb.malacma.rssfeed.geolocation;

/**
 *a:12:{s:14
 * --:"geoplugin_city";s:3:"N/A";s:16
 * :"geoplugin_region";s:3
 * :"N/A";s:18
 * --:"geoplugin_areaCode";s:1
 * :"0";s:17
 * :"geoplugin_dmaCode";s:1:"0";s:21
 * --:"geoplugin_countryCode";s:2:"BR";s:21
 * --:"geoplugin_countryName";s:6:"Brazil";s:23
 * :"geoplugin_continentCode";s:2:"SA";s:18
 * --:"geoplugin_latitude";s:10:"-10.000000";s:19
 * --:"geoplugin_longitude";s:10:"-55.000000";s:22
 * :"geoplugin_currencyCode";s:3
 * :"BRL";s:24:"geoplugin_currencySymbol";s:10
 * :"&#82;&#36;";s:27
 * :"geoplugin_currencyConverter";d
 * :1.7149999156999999883055352256633341312408447265625;}
 * @author malacma malacma@gmail.com
 * http://malacma.cjb.net 2009
 */
public final class GeoLocationTO {
   private String countryCode,countryName,latitude,longitude,city,areaCode,currency,ip;

   public GeoLocationTO(String pcountryCode,String pcountryName,String platitude,String plongitude,String pcity,String pAreaCode,String pCurrency,String pip){
       this.countryCode = pcountryCode;
       this.countryName = pcountryName;
       this.latitude = platitude;
       this.longitude = plongitude;
       this.city = pcity;
       this.areaCode = pAreaCode;
       this.currency = pCurrency;
       this.ip = pip;
   }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

    public String getCountryName() {
        return countryName;
    }

    public void setCountryName(String countryName) {
        this.countryName = countryName;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getCity() {
        return city;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public String getCurrency() {
        return currency;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    @Override
    public String toString() {
        return this.areaCode+"\n"+this.city+"\n"+this.latitude+"\n"+this.longitude+"\n"+this.currency+"\n";
    }

    @Override
    protected void finalize() throws Throwable {
        super.finalize();
        this.areaCode = null;
        this.city = null;
        this.countryCode = null;
        this.countryName = null;
        this.currency = null;
        this.ip = null;
        this.latitude = null;
        this.longitude = null;
    }




}
